{extend name="base" /}
{block name="body"}
<div class="layui-card">
    <div class="layui-card-body">
        <div class="layui-btn-group">
            <a href="{:url('user/customer_config/add')}" class="layui-btn ajax-iframe" data-width="390px" data-height="260px"><i class="fa fa-plus-circle"></i> 添加</a>
        </div>
        <table class="layui-table layui-form">
                <thead>
                        <tr>
                                <th>ID</th>
                                <th>字段</th>
                                <th>名称</th>
                                <th>排序</th>
                                <th>操作</th>
                        </tr>
                </thead>
                <tbody>
                        {foreach name="list" item="v" empty="$empty"}
                        <tr>
                                <td>{$v.id}</td>
                                <td>{$v.field}</td>
                                <td>{$v.name}</td>
                                <td>
                                    <input type="text" name="sort_order" value="{$v.sort_order}" autocomplete="off" class="layui-input ajax-update" data-url="{:url('user/customer_config/edit', ['id' => $v.id])}">
                                </td>
                                <td>
                                        <a href="{:url('user/customer_config/edit', ['id' => $v.id])}" data-width="390px" data-height="260px" class="layui-btn layui-btn-sm layui-btn-normal ajax-iframe">编辑</a>
                                        <a href="{:url('user/customer_config/del', ['id' => $v.id])}" class="layui-btn layui-btn-sm layui-btn-danger ajax-delete">删除</a>
                                </td>
                        </tr>
                        {/foreach}
                </tbody>
        </table>
        <div class="page">{$list|raw}</div>
    </div>
</div>
{/block}
